home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1996 November
/
Chip 11-96.iso
/
treiber
/
grafik
/
miro
/
crystal
/
cr20sv
/
win_nt
/
20svnt.exe
/
OEMSETUP.INF
< prev
next >
Wrap
INI File
|
1995-10-13
|
19KB
|
428 lines
[Identification]
OptionType = VIDEO
[LanguagesSupported]
ENG
[ProgressCopyENG]
ProCaption = "Windows NT Setup"
ProCancel = "Cancel"
ProCancelMsg = "Windows NT is not correctly installed. Are you sure you want "+
"to cancel copying files?"
ProCancelCap = "Setup Message"
ProText1 = "Copying:"
ProText2 = "To:"
[StringsENG]
String1 = "Display"
String2 = "Please enter the full path to the Windows NT Display "+
"driver files. If you want to install files from the "+
"original Setup floppy disks, type a drive letter (such "+
"as A:) and Setup will prompt you for the correct disk. "+
"Then choose Continue."
[Source Media Descriptions]
1 = "miro.plus high-speed drivers setup disk", TAGFILE = miro
[OptionsTextENG]
"crystals" = "miroCRYSTAL (single screen)"
"crystal2" = "miroCRYSTAL (TWINFACE)"
[Options]
"crystals" = crystals
"crystal2" = crystal2
[MiniportDrivers]
crystals = crystals, !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {crystals}, 0, "%SystemRoot%\System32\IoLogMsg.dll", 7, 1, {cpl,cplt }, noconfig
crystal2 = crystal2, !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {crystal2}, 0, "%SystemRoot%\System32\IoLogMsg.dll", 6, 1, {cpl,cplt,mtwc,mtwcd}, noconfig
[Files-DisplayDLLs]
crystals = 1, CRYSTALS.DLL, SIZE=110000
crystal2 = 1, CRYSTAL2.DLL, SIZE=110000
[Files-DisplayMiniportDrivers]
crystals = 1, CRYSTALS.SYS, SIZE=75000
crystal2 = 1, CRYSTAL2.SYS, SIZE=75000
[Files-Other]
cpl = 1, MLINADDR.CPL, SIZE=60000
cplt = 1, CRYSTAL2.CPL, SIZE=60000
mtwc = 1, MTWINCON.EXE, SIZE=50000
mtwcd = 1, MTWINDLL.DLL, SIZE=50000
[Files-Ini]
i00 = 1, CARD000A.INI, SIZE=15000
i01 = 1, CARD000B.INI, SIZE=15000
i02 = 1, CARD000D.INI, SIZE=15000
i03 = 1, CARD000E.INI, SIZE=15000
i04 = 1, CARD000F.INI, SIZE=15000
i05 = 1, CARD0010.INI, SIZE=15000
i06 = 1, CARD0012.INI, SIZE=15000
i07 = 1, CARD0015.INI, SIZE=15000
i08 = 1, CARD0016.INI, SIZE=15000
i09 = 1, CARD0017.INI, SIZE=15000
i10 = 1, CARD010A.INI, SIZE=15000
i11 = 1, CARD010B.INI, SIZE=15000
i12 = 1, CARD010D.INI, SIZE=15000
i13 = 1, CARD010E.INI, SIZE=15000
i14 = 1, CARD020D.INI, SIZE=15000
i15 = 1, CARD020E.INI, SIZE=15000
i16 = 1, CARD0210.INI, SIZE=15000
i17 = 1, CARD0211.INI, SIZE=15000
i18 = 1, CARD0212.INI, SIZE=15000
i19 = 1, CARD0213.INI, SIZE=15000
i20 = 1, CARD0214.INI, SIZE=15000
i21 = 1, CARD030B.INI, SIZE=15000
i22 = 1, CARD0311.INI, SIZE=15000
i23 = 1, CARD0313.INI, SIZE=15000
i24 = 1, CARD040B.INI, SIZE=15000
i25 = 1, CARD0510.INI, SIZE=15000
i26 = 1, CARD0513.INI, SIZE=15000
i27 = 1, CARD0610.INI, SIZE=15000
i28 = 1, MIROHW.INI, SIZE=15000
i29 = 1, MIRONAME.INI, SIZE=15000
i30 = 1, MONITOR.INI, SIZE=80000
i31 = 1, TIMING.INI, SIZE=80000
[OpenGLDrivers]
[Identify]
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
[ServicesEntry]
CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
[SystemVariables]
STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
[InstallOption]
set Status = STATUS_FAILED
set DrivesToFree = {}
set !Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set DoInstall = $($6)
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
else
set Status = STATUS_NOLANGUAGE
goto finish_InstallOption
endif
read-syms Strings$($0)
ifstr(i) $(!Option) != "DETECT"
set OptionList = ^(Options, 0)
ifcontains $(!Option) in $(OptionList)
else
goto finish_InstallOption
endif
set OptionList = ""
set DriverEntry = #(Options, $(!Option), 1)
set MiniportDriver = #(MiniportDrivers, $(DriverEntry), 1)
set InstalledDisplays = #(MiniportDrivers, $(DriverEntry), 5)
set OtherFiles = #(MiniportDrivers, $(DriverEntry), 10)
endif
read-syms ServicesEntry
detect ServicesEntry
set DriversList = ^(MiniportDrivers, 0)
set MiniportDriverList = ^(Files-DisplayMiniportDrivers, 0)
set DisplayDriverList = ^(Files-DisplayDLLs, 0)
set OpenGLDriverList = ^(OpenGLDrivers, 0)
set OtherFilesList = ^(Files-Other, 0)
installtheoption = +
ifstr(i) $(AddCopy) == "YES"
ifstr(i) $(!Option) == "DETECT"
set DoActualCopy = YES
else
set DoActualCopy = NO
set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
ifstr(i) $(STATUS) == NO
set DoActualCopy = YES
goto addfiles
endif
ForListDo $(OtherFiles)
ifcontains $($) in $(OtherFilesList)
set FileToCheck = #(Files-Other, $($), 2)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
ifstr(i) $(STATUS) == NO
set DoActualCopy = YES
goto addfiles
endif
endif
EndForListDo
ForListDo $(InstalledDisplays)
ifcontains $($) in $(DisplayDriverList)
set FileToCheck = #(Files-DisplayDLLs, $($), 2)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
ifstr(i) $(STATUS) == NO
set DoActualCopy = YES
goto addfiles
endif
ifcontains $($) in $(OpenGLDriverList)
set FileToCheck = #(Files-DisplayOpenGLDrivers, #(OpenGLDrivers, $($), 1), 2)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
ifstr(i) $(STATUS) == NO
set DoActualCopy = YES
goto addfiles
endif
endif
endif
EndForListDo
endif
addfiles = +
ifstr(i) $(DoActualCopy) == NO
shell "subroutn.inf" DriversExist $($0) $(String1)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "VIDEO.INF: shelling DriversExist failed"
goto finish_InstallOption
endif
ifstr(i) $($R0) == STATUS_CURRENT
else-ifstr(i) $($R0) == STATUS_NEW
set DoActualCopy = YES
else-ifstr(i) $($R0) == STATUS_USERCANCEL
Debug-Output "VIDEO.INF: User cancelled video installation"
goto finish_InstallOption
else
Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
goto finish_InstallOption
endif
endif
ifstr(i) $(DoActualCopy) == YES
shell "registry.inf" GetNTSource
ifint $($ShellCode) != $(!SHELL_CODE_OK)
else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
else
set SrcDir = $($R1)
endif
shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
goto finish_InstallOption
endif
ifstr(i) $($R0) == STATUS_SUCCESSFUL
set SrcDir = $($R1)
ifstr(i) $($R2) != ""
set DrivesToFree = >($(DrivesToFree), $($R2))
endif
else
Debug-Output "VIDEO.INF: User cancelled asking source."
goto finish_InstallOption
endif
ifstr(i) $(!Option) != "DETECT"
install Install-AddCopyOption
else
install Install-AddAllCopy
endif
ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
Debug-Output "VIDEO.INF: Adding video files to copy list failed"
goto finish_InstallOption
endif
else
set DoCopy = NO
endif
endif
ifstr(i) $(DoCopy) == "YES"
read-syms ProgressCopy$($0)
install Install-DoCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
Debug-Output "Copying files failed"
goto finish_InstallOption
else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
set Status = STATUS_USERCANCEL
goto finish_InstallOption
endif
endif
ifstr(i) $(DoConfig) == "YES"
shell "registry.inf" CheckSetupModify
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto finish_InstallOption
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
goto finish_InstallOption
endif
ForListDo $(DriversList)
ifstr(i) $(!Option) == "DETECT"
set DriverEntry = $($)
set DeviceDescription = ""
set ErrorControl = $(!SERVICE_ERROR_IGNORE)
ifcontains #(MiniportDrivers, $(DriverEntry), 1) in $(MiniportDriverList)
ifint #(MiniportDrivers, $(DriverEntry), 9) == 1
set configDriver = YES
else
set configDriver = NO
endif
else
set configDriver = NO
endif
else
set DeviceDescription = $(!Option)
set ErrorControl = $(#(MiniportDrivers, $(DriverEntry), 4))
ifstr(i) $(DriverEntry) == $($)
set configDriver = YES
else
set configDriver = NO
endif
endif
ifstr(i) $(configDriver) == YES
Debug-Output "configuring the miniport driver"
set MiniportDriver = #(MiniportDrivers, $(DriverEntry), 1)
set Type = $(#(MiniportDrivers, $(DriverEntry), 2))
set Group = #(MiniportDrivers, $(DriverEntry), 3)
set InstalledDisplays = #(MiniportDrivers, $(DriverEntry), 5)
set VgaCompatible = #(MiniportDrivers, $(DriverEntry), 6)
set EventMessageFile = #(MiniportDrivers, $(DriverEntry), 7)
set TypesSupported = #(MiniportDrivers, $(DriverEntry), 8)
set ServiceNode = $(DriverEntry)
set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
set ServicesValues = { +
{Type, 0, $(!REG_VT_DWORD), $(Type) }, +
{Group, 0, $(!REG_VT_SZ), $(Group) }, +
{ErrorControl, 0, $(!REG_VT_DWORD), $(ErrorControl) }, +
{BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary) } +
}
ifstr(i) $(DoInstall) == "YES"
set ServicesValues = >($(ServicesValues), +
{Start, 0, $(!REG_VT_DWORD), $(!SERVICE_SYSTEM_START) })
else
set ServicesValues = >($(ServicesValues), +
{Start, 0, $(!REG_VT_DWORD), $(!SERVICE_DISABLED) })
endif
set !ParametersValues = { +
{"Device Description", 0, $(!REG_VT_SZ), $(DeviceDescription) }, +
{InstalledDisplayDrivers, 0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
{VgaCompatible, 0, $(!REG_VT_DWORD), $(VgaCompatible) }, +
{DefaultSettings.BitsPerPel, 0, $(!REG_VT_DWORD), 0 }, +
{DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), 0 }, +
{DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), 0 }, +
{DefaultSettings.XResolution, 0, $(!REG_VT_DWORD), 0 }, +
{DefaultSettings.YResolution, 0, $(!REG_VT_DWORD), 0 }, +
{DoLinearAddressing, 0, $(!REG_VT_DWORD), 0 }, +
{Primary.IsLeft, 0, $(!REG_VT_DWORD), 0 }, +
{TwinControlFlag, 0, $(!REG_VT_DWORD), 0 } +
}
ifstr(i) $(!Option) != "DETECT"
shell "" #(MiniportDrivers, $(DriverEntry), 11)
endif
set DeviceValues = {}
set EventLogValues = { +
{EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
{TypesSupported, 0, $(!REG_VT_DWORD), $(TypesSupported) } +
}
shell "registry.inf" MakeServicesEntry $(ServiceNode) +
$(ServicesValues) +
$(!ParametersValues) +
$(DeviceValues) +
$(EventLogValues) +
Device0
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
goto finish_InstallOption
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
Debug-Output "MakeServicesEntry failed for video"
goto finish_InstallOption
endif
ForListDo $(InstalledDisplays)
ifcontains $($) in $(OpenGLDriverList)
set KeyPath = { +
{SOFTWARE, 0, $(MaskAllAccess)}, +
{Microsoft, 0, $(MaskAllAccess)}, +
{"Windows NT", 0, $(MaskAllAccess)}, +
{CurrentVersion, 0, $(MaskAllAccess)}, +
{OpenGLDrivers, 0, $(MaskAllAccess)} +
}
set KeyValue = { +
{$($), 0, $(!REG_VT_SZ), #(OpenGLDrivers, $($), 1) } +
}
shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValue)
Debug-Output "just did an OGL section"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Couldn't execute CreateKey in registry.inf"
goto endInstallOpenGLDriver
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
Debug-Output "CreateKey failed for OGLDrivers"
goto endInstallOpenGLDriver
endif
Debug-Output "VIDEO.INF: success installing an ogl entry"
endif
EndForListDo
endif
EndForListDo
endif
set Status = STATUS_SUCCESSFUL
finish_InstallOption = +
ForListDo $(DrivesToFree)
LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
EndForListDo
Return $(Status)
[Install-AddCopyOption]
Debug-Output "adding to copy list"
set STF_VITAL = ""
AddSectionKeyFileToCopyList Files-DisplayMiniportDrivers +
$(MiniportDriver) +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Ini +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)\drivers
ForListDo $(OtherFilesList)
ifcontains $($) in $(OtherFiles)
Debug-Output "adding other files to copy list"
AddSectionKeyFileToCopyList Files-Other +
$($) +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)
endif
EndForListDo
ForListDo $(InstalledDisplays)
ifcontains $($) in $(DisplayDriverList)
Debug-Output "adding display driver to copy list"
AddSectionKeyFileToCopyList Files-DisplayDLLs +
$($) +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)
ifcontains $($) in $(OpenGLDriverList)
Debug-Output "adding opengl driver to copy list"
AddSectionKeyFileToCopyList Files-DisplayOpenGLDrivers +
#(OpenGLDrivers, $($), 1) +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)
endif
endif
EndForListDo
exit
[Install-AddAllCopy]
Debug-Output "adding all drivers to copy list"
set STF_VITAL = ""
AddSectionFilesToCopyList Files-DisplayMiniportDrivers +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-DisplayDLLs +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)
exit
[Install-DoCopyOption]
CopyFilesInCopyList
exit
[noconfig]
return
[twinconfig]
return